Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: sign proposal #858

Merged
merged 5 commits into from
Jan 3, 2024
Merged

Conversation

Cifko
Copy link
Contributor

@Cifko Cifko commented Dec 29, 2023

Description

Sing the proposal (the proposer signs the block).

Motivation and Context

How Has This Been Tested?

I just did sample run on dan-testing.

What process can a PR reviewer use to test or verify this change?

You can run the dan-testing and maybe do a debug logs on the signature check to make sure that the checks are enforced.

Breaking Changes

  • None
  • Requires data directory to be deleted
  • Other - Please specify

@Cifko Cifko mentioned this pull request Dec 29, 2023
Copy link

github-actions bot commented Dec 29, 2023

Test Results (CI)

188 tests  ±0   188 ✅ ±0   1h 44m 27s ⏱️ + 8m 4s
 51 suites ±0     0 💤 ±0 
  2 files   ±0     0 ❌ ±0 

Results for commit 7fbad8e. ± Comparison against base commit 3b769ec.

♻️ This comment has been updated with latest results.

Copy link
Member

@sdbondi sdbondi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

Nice

@@ -42,6 +42,30 @@ pub fn check_proposed_by_leader<TAddr: DerivableFromPublicKey, TLeaderStrategy:
Ok(())
}

pub fn check_signature(candidate_block: &Block) -> Result<(), ProposalValidationError> {
if candidate_block.is_dummy() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should change the sync to never send and receive dummy blocks, We could calculate dummy blocks instead.

@sdbondi sdbondi added this pull request to the merge queue Jan 3, 2024
Merged via the queue into tari-project:development with commit 5139cbb Jan 3, 2024
10 checks passed
sdbondi added a commit to Cifko/tari-dan that referenced this pull request Jan 3, 2024
* development:
  feat: sign proposal (tari-project#858)
  feat(template_lib): add from_str for NFT addresses (tari-project#855)
  chore(engine): remove unused NFT marketplace POC template (tari-project#854)
  chore(deps): bump unsafe-libyaml from 0.2.9 to 0.2.10 (tari-project#856)
  fix: clippies on latest stable rust 1.75 (tari-project#862)
  chore: publish wasm dependencies to crates (tari-project#778)
  feat: create get_non_fungible_ids action for buckets (tari-project#847)
  feat(template_test_tooling): include account_nft builtin template (tari-project#850)
  v0.3.1
  chore(deps): bump actions/upload-artifact from 3 to 4 (tari-project#852)
  chore(deps): bump actions/download-artifact from 3 to 4 (tari-project#851)
  fix(p2p/messaging): single stream per connection (tari-project#845)
  feat(p2p): peer-sync protocol (tari-project#844)
  chore(deps): Bump zerocopy from 0.7.30 to 0.7.31 (tari-project#846)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants